#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>

int main(int argc, char **argv)
{

    char line[1024];
    FILE *fd;
    fd = fopen("passwd", "r");
    // while (feof(fd)==0)
    while (fgets(line, 1024, fd) != NULL)
    {
        printf(" %s ", line);
    }

    return 0;
}